package com.dy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods")
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品名")
    private String name;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "快递")
    private String expressage;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "服务")
    private String serve;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "外键")
    private Integer cid;

    @ApiModelProperty(value = "发货")
    private String shipments;

    @ApiModelProperty(value = "原价")
    private BigDecimal score1;

    @ApiModelProperty(value = "邮费")
    private BigDecimal postage;

    @ApiModelProperty(value = "现价")
    private BigDecimal score2;

    @ApiModelProperty(value = "库存")
    private Integer inventory;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "商品类型")
    private String type;

    @ApiModelProperty(value = "收藏")
    private Integer collect;

    @ApiModelProperty(value = "卖家id")
    private Integer uid;
}
